package cn.findviewbydream.evil.main.entity;

import java.io.Serializable;
import java.util.Date;

/********************************************
 * 工程名：HebeuCS
 * 包名：cn.findviewbydream.evil.main.entity
 * 时间：16-11-5 下午2:08
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：文章实体
 ********************************************/
public class PostEntity implements Serializable
{
    private int postId;/*文章id*/
    private UserEntity releaseUser;/*发布该文章的用户实体*/
    private String title;/*文章标题*/
    private CodeTypeEntity codeType;/*文章语言类型*/
    private String tags;/*文章标签，json字符串数组*/
    private String md;/*文章内容(text/markdown)*/
    private String html;/*文章内容(text/html)*/
    private Date overtime;/*文章创建时间*/

    public PostEntity()
    {
    }

    public PostEntity(int postId, UserEntity releaseUser, String title, CodeTypeEntity codeType, String tags, String
            md, String html, Date overtime)
    {
        this.postId = postId;
        this.releaseUser = releaseUser;
        this.title = title;
        this.codeType = codeType;
        this.tags = tags;
        this.md = md;
        this.html = html;
        this.overtime = overtime;
    }

    public int getPostId()
    {
        return postId;
    }

    public void setPostId(int postId)
    {
        this.postId = postId;
    }

    public UserEntity getReleaseUser()
    {
        return releaseUser;
    }

    public void setReleaseUser(UserEntity releaseUser)
    {
        this.releaseUser = releaseUser;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public CodeTypeEntity getCodeType()
    {
        return codeType;
    }

    public void setCodeType(CodeTypeEntity codeType)
    {
        this.codeType = codeType;
    }

    public String getTags()
    {
        return tags;
    }

    public void setTags(String tags)
    {
        this.tags = tags;
    }

    public String getMd()
    {
        return md;
    }

    public void setMd(String md)
    {
        this.md = md;
    }

    public String getHtml()
    {
        return html;
    }

    public void setHtml(String html)
    {
        this.html = html;
    }

    public Date getOvertime()
    {
        return overtime;
    }

    public void setOvertime(Date overtime)
    {
        this.overtime = overtime;
    }

    @Override
    public String toString()
    {
        return "PostEntity{" +
                "postId=" + postId +
                ", releaseUser=" + releaseUser +
                ", title='" + title + '\'' +
                ", codeType=" + codeType +
                ", tags='" + tags + '\'' +
                ", md='" + md + '\'' +
                ", html='" + html + '\'' +
                ", overtime=" + overtime +
                '}';
    }
}
